﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<GlassStore.Models.Glass>" %>
  <div id="glass-details">
      <table>
          <tr>
              <td>
                  <img src="<%:Model.Thumbnail %>" alt="没有图片" width="375" height="375" />
              </td>
              <td>
                  <ul>
                      <li><span>批发价:</span> <span>
                          <%: String.Format("{0:F}", Model.Price) %>元</span> </li>
                      <li><span>品&nbsp;&nbsp;&nbsp;&nbsp;牌:</span> <span>
                          <%: Model.Brand %></span> </li>
                      <li><span>材&nbsp;&nbsp;&nbsp;&nbsp;质:</span> <span>
                          <%: Model.Material %></span> </li>
                      <li><span>
                          <%: Model.Style %>-</span> <span>
                              <%: Model.StyleDetail %></span> </li>
                      <li><span>型&nbsp;&nbsp;&nbsp;&nbsp;号:</span> <span>
                          <%: Model.Serial %></span> </li>
                      <li><span>颜&nbsp;&nbsp;&nbsp;&nbsp;色:</span> <span>
                          <%: Model.Color %></span> </li>
                      <li><span>尺&nbsp;&nbsp;&nbsp;&nbsp;寸:</span> <span>
                          <%: Model.Size %></span> </li>
                  </ul>
              </td>
          </tr>
      </table>
      <table width="750">
          <tr>
              <td>
                  <strong>产品说明:</strong><br />
              </td>
              </tr>
              <tr>
                  <td>
                      <p><strong><%: string.IsNullOrEmpty(Model.Description)? null: MvcHtmlString.Create(Model.Description.Replace("\r\n", "<br/>")) %></strong></p>
                  </td>
          </tr>
          <tr>
              <td>
                  <%if (Model.GlassPictures != null && Model.GlassPictures.Count > 0)
                        foreach (var item in Model.GlassPictures.ToList())
                        { %>
                  <img src="<%:item.PictureURL %>" alt="没有图片" width="750" height="450" />
                  <% } %>
                  <img src="/Content/Images/ad.jpg" alt="没有图片" width="750" height="160" />
              </td>
          </tr>
      </table>
      
    
    
  </div>
